package com.want.buss.interfaces.utils;

import java.util.List;

import com.want.buss.interfaces.vo.ResultVo;

/**
 * 
 * @author 00323357
 * @date   2018年12月12日
 */
public class ResultVoUtils{

    public static  ResultVo success(List list) {
        ResultVo resultVo = new ResultVo();
        resultVo.setDatas(list);
        resultVo.setCode(1);
        resultVo.setMsg("成功");
        return resultVo;
    }

    public static ResultVo success() {
        return success(null);
    }

    public static ResultVo error(Integer code, String msg) {
        ResultVo resultVO = new ResultVo();
        resultVO.setCode(code);
        resultVO.setMsg(msg);
        return resultVO;
    }
}
